package org.dromara.report.order.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 报表-消费订单汇总业务对象 report_consume_order_total
 *
 * @author wdm
 * @date 2024-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ReportConsumeOrderTotalBo extends BaseEntity {

    /**
     * 门店ID
     */
    @NotNull(message = "门店ID不能为空", groups = { EditGroup.class })
    private Long storeId;

    /**
     * 门店名称
     */
    @NotBlank(message = "门店名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeName;

    /**
     * 消费时间
     */
    @NotNull(message = "消费时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date orderTime;

    /**
     * 订单金额
     */
    @NotNull(message = "订单金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal orderMoney;

    /**
     * 微信支付
     */
    @NotNull(message = "微信支付不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal wxPay;

    /**
     * 支付宝支付
     */
    @NotNull(message = "支付宝支付不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal aliPay;

    /**
     * pos刷卡
     */
    @NotNull(message = "pos刷卡不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal posPay;

    /**
     * 现金支付
     */
    @NotNull(message = "现金支付不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal moneyPay;

    /**
     * 订单退换总金额，退换品总金额
     */
    @NotNull(message = "订单退换总金额，退换品总金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal orderRefundMoney;

    /**
     * 抹零金额
     */
    @NotNull(message = "抹零金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal ignorePay;

    /**
     * 查询时段
     */
    @NotNull(message = "查询时段不能为空", groups = { AddGroup.class, EditGroup.class })
    private String queryTimeRange;


}

